package com.dupf.upms.rpc.api;

import com.dupf.upms.dao.model.*;
import net.sf.json.JSONObject;

import java.util.List;
import java.util.Map;

/**
 * upms系统接口
 * Created by dupf on 2018/3/1.
 */
public interface UpmsUploadService {
    /**
     * 获取七牛云上传token
     *
     * @param userId
     * @param bucket
     * @param module
     * @return
     */
    Map<String, Object> getQiniuToken(String userId, String bucket, String module);

    /**
     * 直接上传网络图片
     *
     * @param url
     * @param bucket
     * @return
     */
    Map<String, Object> uploadUrlFile(String url, String bucket);

}
